<div ng-controller="z-notice-c" z-loading is-loading="viewModel.isLoading">
	<div viewstack class="carousel slide" data-ride="carousel">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
					<div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a>首页</a>
	                        </li>
                        </ul>
                    </div>
                </div>
				<div class="container-fluid">
					<div class="row">
						<div class="widget">
                            <div class="widget-header bordered-bottom bordered-sky">
                                <span class="widget-caption">公告栏</span>
                            </div>
                            <div class="widget-body no-padding">
                                <div class="widget-main ">
                                    <div class="panel-group accordion" id="accordion">
                                    	<div class="panel panel-default" ng-repeat="announcement in viewModel.announcementList">
											<div class="panel-heading">
												<h4 class="panel-title">
													<a ng-if="$index==0" class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse{{$index}}">
														{{announcement.title}}
													</a>
													<a ng-if="$index!=0"  class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapse{{$index}}">
														{{announcement.title}}
													</a>
												</h4>
											</div>
											<div ng-if="$index==0" id="collapse{{$index}}" class="panel-collapse collapse in">
												<div class="panel-body">
													<div ng-bind-html="viewModel.trustAsHtml(announcement.content)"></div>
												</div>
												<div class="panel-body">
													<span ng-repeat="attachment in announcement.attachmentList track by $index">
														<span ng-if="$index>0">&nbsp;&nbsp;&nbsp;&nbsp;</span>
													 	<a ng-click="viewModel.download(attachment.url,attachment.fileName)">{{attachment.fileName}}</a>
													</span>
												</div>
											</div>
										    <div ng-if="$index!=0"  id="collapse{{$index}}" class="panel-collapse collapse">
												<div class="panel-body">
													<div ng-bind-html="viewModel.trustAsHtml(announcement.content)"></div>
												</div>
												<div class="panel-body">
													<span ng-repeat="attachment in announcement.attachmentList track by $index">
														<span ng-if="$index>0">&nbsp;&nbsp;&nbsp;&nbsp;</span>
													 	<a ng-click="viewModel.download(attachment.url,attachment.fileName)">{{attachment.fileName}}</a>
													</span>
												</div>
											</div>
										</div>
                                    </div>
                                </div>
                            </div>
                        </div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>